package com.mxx.pmxt.service;

import com.alibaba.fastjson.JSONObject;
import com.mxx.pmxt.model.PUsersModel;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

/**
 * Created by 马潇霄 on 2017/3/23.
 */
public interface PUserService
{
    JSONObject getAllUser();

    int insertUser(String uname,String upassword,String urealname,Integer usex,String utel,String uaddress);

    int checkUName(String uname);

    int checkLogin(String uname,String password);

    Map<String,String> showUserinfo(String uname);

    int modifyUser(String afteruname,String uname,String upassword,String urealname,Integer usex,String utel,String uaddress);

    String getUserAccount(String uname);

    BigDecimal saveMoney(BigDecimal money,String name);
}
